package com.kgc.cgapi.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

public class CGXJInfo implements Serializable {
    @ExcelIgnore
    private int id;
    @ExcelProperty("产品id*")
    private int pid;
    @ExcelIgnore
    private String type;
    @ExcelProperty("主订单编号*")
    private String major_code;
    @ExcelProperty("产品名称")
    private String name;
    @ExcelProperty("产品数量*")
    private int num;
    @ExcelProperty("产品价格*")
    private BigDecimal price;
    @ExcelProperty("产品税率*")
    private String tax;
    @ExcelProperty("税后价*")
    private BigDecimal tax_price;
    @ExcelProperty("产品编码")
    private String pcode;
    @ExcelProperty("型号名")
    private String uname;

    @Override
    public String toString() {
        return "CGXJInfo{" +
                "id=" + id +
                ", pid=" + pid +
                ", type = " + type +
                ", major_code='" + major_code + '\'' +
                ", num=" + num +
                ", price=" + price +
                ", tax='" + tax + '\'' +
                ", tax_price=" + tax_price +
                ", pcode='" + pcode + '\'' +
                ", uname='" + uname + '\'' +
                '}';
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTax() {
        return tax;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }

    public BigDecimal getTax_price() {
        return tax_price;
    }

    public void setTax_price(BigDecimal tax_price) {
        this.tax_price = tax_price;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getMajor_code() {
        return major_code;
    }

    public void setMajor_code(String major_code) {
        this.major_code = major_code;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
